package com.dody.agile.payment.transaction;

import com.dody.agile.payment.classification.HourlyClassification;
import com.dody.agile.payment.classification.PaymentClassification;
import com.dody.agile.payment.schedule.PaymentSchedule;
import com.dody.agile.payment.schedule.WeeklySchedule;

/**
 * @author ShiXin
 * @date 2019/4/11 19:34
 * @description agile
 */
public class AddHourlyEmployee extends AddEmployeeTransaction{

    private double hourlySalary;

    public AddHourlyEmployee(Integer empId, String name, String home, double hourlySalary) {
        super(empId,home,name);
        this.hourlySalary = hourlySalary;
    }

    @Override
    PaymentClassification getClassification() {
        return new HourlyClassification(hourlySalary);
    }

    @Override
    PaymentSchedule getSchedule() {
        return new WeeklySchedule();
    }
}
